<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>订单明细</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="-661577955">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/admin/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/admin/js/jquery-1.7.1.min.js"></script>
	
	<script type="text/javascript" src="/admin/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/admin//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<script type="text/javascript" src="/admin/js/jquery-ui-1.10.2.custom.min.js"></script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/admin/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/admin/css/define.css"/>
	<!-- icon font -->
  	<link rel="stylesheet" href="/admin/css/iconfont.css">
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "-661577955";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/admin/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/admin/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("orderdetails.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		document.title={
  			 "insert":"创建订单明细"
  			,"inport":"导入订单明细"
  			,"update":"修改订单明细"
  			,"detail":"订单明细详情"
  		}[options.edittype];
  		THIS.setData(protocol.data); 
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>
<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		if($("#img").size()>0){
			 //构造编辑页orderDetails.img为html编辑控件
			 KE.init({
				id : "img",
				width : "750px",height : "300px", 
				imageUploadJson : window["uploadUrl"]
			 });
			 KE.create("img");
		 }
		 
	$("#orderdetailsForm").form({
		"":function(){}
		,"orderDetails.id":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"orderDetails.name":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "商品名称不能为空";
			}
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "商品名称最大长度为32个字符";
		}
		,"orderDetails.orders":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"orderDetails.goodsNumber":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"orderDetails.img":function(el){
			if($("#img").get(0))
			 	KE.sync("img");		 
		}
		,"orderDetails.price":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "商品价格输入格式错误";
		}
		,"orderDetails.number":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "数量不能为空";
			}
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"orderDetails.attributes":function(el){
			if(el.value.length>215 && el.value.indexOf("[*]")==-1)
				return "所选属性最大长度为215个字符";
		}
		,"orderDetails.distributorIncome":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "配送商可获收益输入格式错误";
		}
		,"orderDetails.updateTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "修改时间不能为空";
			}
		}
		,"orderDetails.addTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "添加时间不能为空";
			}
		}
		,"orderDetails.status":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择状态";
			}
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>

<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>


<form enctype="{{inports!=null?'multipart/form-data':''}}" lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'||edittype=='inport'}}" class="form editform edittype_{{edittype}}" ref="OrderDetails" id="orderdetailsForm" name="orderdetailsForm" target="jsoniframe" action="orderdetails.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt" style="display:none;">
				温馨提示：请仔细填写订单明细相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
			
			<lz:block lz:if="{{inports}}">
			  <div class="line"></div>
			  <dl style="width:98%;">
			  	<dt>Excel文件:</dt>
			  	<dd>
			  		<input type="hidden" value="{{inports}}" name="inports" id="inports" />
			  		<input type="hidden" value="{{inport$}}" name="inport$" id="inport$" />
			  		<input name="file" name="file" type="file"/>
			  		<b>*</b>
			  		<div>
						请上传excel文件，表格列依次为：[{{inport$}}]，excel表格第一行为列名称，将不作为上传数据行
					</div>
			  	</dd>
			  </dl>
			  <div class="line"></div>
			</lz:block>
	{{lz.set("id_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"id"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"id"))))}}
	{{lz.set("id_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$id}}
	<dl lz:if="{{id_editable||id_readonly}}" class="id hidden " major  ref="id">
		<dt>编　　号:</dt>
		<dd lz:if="{{id_editable}}" input="hidden">
			<lz:block lz:if="{{orderDetails$id}}">
				{{orderDetails$id}}
			</lz:block>
			<lz:block lz:if="{{!orderDetails$id}}">
			<input type="hidden" value="{{lz.htm(orderDetails.id)}}" name="orderDetails.id" id="id" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{id_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="id">{{orderDetails.id}}</textarea>
		 		<span>
		 	
			 {{lz.html(orderDetails.id$||orderDetails.id)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$id}}
	{{lz.set("name_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"name"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"name"))))}}
	{{lz.set("name_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$name}}
	<dl lz:if="{{name_editable||name_readonly}}" class="name  " major  ref="name">
		<dt>商品名称:</dt>
		<dd lz:if="{{name_editable}}" input="text">
			<lz:block lz:if="{{orderDetails$name}}">
				{{orderDetails$name}}
			</lz:block>
			<lz:block lz:if="{{!orderDetails$name}}">
		 	<input type="text" class="input narrow"   name="orderDetails.name" id="name"  value="{{lz.htm(orderDetails.name)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入订单明细的商品名称</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{name_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="name">{{orderDetails.name}}</textarea>
		 		<span>
		 	
			 {{lz.html(orderDetails.name$||orderDetails.name)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$name}}
	{{lz.set("orders_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"orders"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"orders"))))}}
	{{lz.set("orders_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$orders}}
	<dl lz:if="{{orders_editable||orders_readonly}}" class="orders  " major  ref="orders">
		<dt>所属订单:</dt>
		<dd lz:if="{{orders_editable}}" input="query">
			<lz:block lz:if="{{orderDetails$orders}}">
				{{orderDetails$orders}}
			</lz:block>
			<lz:block lz:if="{{!orderDetails$orders}}">
		 			<input title="请输入商品订单订单号进行查询" class="combox narrow" action="/admin/goods/directorder.query.do?value={param}" type="text" id="orders" name="orderDetails.orders" text="{{lz.html(orderDetails.orders$||orderDetails.orders)}}" value="{{lz.htm(orderDetails.orders)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#orders').val())==''){return;};window.href('/admin/goods/directorder.detail.html?key='+$('#orders').val())"></a>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{orders_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="orders">{{orderDetails.orders}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/goods/directorder.details.html?key=orderDetails.orders}')">
			 {{lz.html(orderDetails.orders$||orderDetails.orders)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$orders}}
	{{lz.set("goodsNumber_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"goodsNumber"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"goodsNumber"))))}}
	{{lz.set("goodsNumber_readonly",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='detail'))}}
	
	{{before$goodsNumber}}
	<dl lz:if="{{goodsNumber_editable||goodsNumber_readonly}}" class="goodsNumber  " major  ref="goodsNumber">
		<dt>商品编号:</dt>
		<dd lz:if="{{goodsNumber_editable}}" input="query">
			<lz:block lz:if="{{orderDetails$goodsNumber}}">
				{{orderDetails$goodsNumber}}
			</lz:block>
			<lz:block lz:if="{{!orderDetails$goodsNumber}}">
		 			<input title="请输入商品信息商品名称进行查询" class="combox narrow" action="/admin/goods/commodity.query.do?value={param}" type="text" id="goodsNumber" name="orderDetails.goodsNumber" text="{{lz.html(orderDetails.goodsNumber$||orderDetails.goodsNumber)}}" value="{{lz.htm(orderDetails.goodsNumber)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#goodsNumber').val())==''){return;};window.href('/admin/goods/commodity.detail.html?key='+$('#goodsNumber').val())"></a>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{goodsNumber_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="goodsNumber">{{orderDetails.goodsNumber}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/goods/commodity.details.html?key=orderDetails.goodsNumber}')">
			 {{lz.html(orderDetails.goodsNumber$||orderDetails.goodsNumber)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$goodsNumber}}
	{{lz.set("img_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"img"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"img"))))}}
	{{lz.set("img_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$img}}
	<dl lz:if="{{img_editable||img_readonly}}" class="ribs img   wider" major  ref="img">
		<dt>商 品 图:</dt>
		<dd lz:if="{{img_editable}}" input="html">
			<lz:block lz:if="{{orderDetails$img}}">
				{{orderDetails$img}}
			</lz:block>
			<lz:block lz:if="{{!orderDetails$img}}">
		    <textarea class="input wide html"  id="img" name="orderDetails.img" style="height:300px;visibility:hidden;">{{orderDetails.img}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入订单明细的商品图</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{img_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(orderDetails.img$||orderDetails.img)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$img}}
	{{lz.set("price_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"price"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"price"))))}}
	{{lz.set("price_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$price}}
	<dl lz:if="{{price_editable||price_readonly}}" class="price  " major  ref="price">
		<dt>商品价格:</dt>
		<dd lz:if="{{price_editable}}" input="menoy">
			<lz:block lz:if="{{orderDetails$price}}">
				{{orderDetails$price}}
			</lz:block>
			<lz:block lz:if="{{!orderDetails$price}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="orderDetails.price" id="price"  value="{{lz.htm(orderDetails.price)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入订单明细的商品价格</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{price_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="price">{{orderDetails.price}}</textarea>
		 		<span>
		 	
			 {{lz.html(orderDetails.price$||orderDetails.price)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$price}}
	{{lz.set("number_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"number"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"number"))))}}
	{{lz.set("number_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$number}}
	<dl lz:if="{{number_editable||number_readonly}}" class="number  " major  ref="number">
		<dt>数　　量:</dt>
		<dd lz:if="{{number_editable}}" input="number">
			<lz:block lz:if="{{orderDetails$number}}">
				{{orderDetails$number}}
			</lz:block>
			<lz:block lz:if="{{!orderDetails$number}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="orderDetails.number" id="number"  value="{{lz.htm(orderDetails.number)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入订单明细的数量</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{number_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="number">{{orderDetails.number}}</textarea>
		 		<span>
		 	
			 {{lz.html(orderDetails.number$||orderDetails.number)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$number}}
	{{lz.set("attributes_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"attributes"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"attributes"))))}}
	{{lz.set("attributes_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$attributes}}
	<dl lz:if="{{attributes_editable||attributes_readonly}}" class="ribs attributes   wider" minor  ref="attributes">
		<dt>所选属性:</dt>
		<dd lz:if="{{attributes_editable}}" input="textarea">
			<lz:block lz:if="{{orderDetails$attributes}}">
				{{orderDetails$attributes}}
			</lz:block>
			<lz:block lz:if="{{!orderDetails$attributes}}">
		 	<textarea class="input wide"  id="attributes" name="orderDetails.attributes" rows="5">{{orderDetails.attributes}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入订单明细的所选属性</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{attributes_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(orderDetails.attributes$||orderDetails.attributes)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$attributes}}
	{{lz.set("distributorIncome_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"distributorIncome"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"distributorIncome"))))}}
	{{lz.set("distributorIncome_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$distributorIncome}}
	<dl lz:if="{{distributorIncome_editable||distributorIncome_readonly}}" class="ribs distributorIncome  " major  ref="distributorIncome">
		<dt>配送商可获收益:</dt>
		<dd lz:if="{{distributorIncome_editable}}" input="menoy">
			<lz:block lz:if="{{orderDetails$distributorIncome}}">
				{{orderDetails$distributorIncome}}
			</lz:block>
			<lz:block lz:if="{{!orderDetails$distributorIncome}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="orderDetails.distributorIncome" id="distributorIncome"  value="{{lz.htm(orderDetails.distributorIncome)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入订单明细的配送商可获收益</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{distributorIncome_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="distributorIncome">{{orderDetails.distributorIncome}}</textarea>
		 		<span>
		 	
			 {{lz.html(orderDetails.distributorIncome$||orderDetails.distributorIncome)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$distributorIncome}}
	{{lz.set("updateTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"updateTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"updateTime"))))}}
	{{lz.set("updateTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$updateTime}}
	<dl lz:if="{{updateTime_editable||updateTime_readonly}}" class="updateTime  " major  ref="updateTime">
		<dt>修改时间:</dt>
		<dd lz:if="{{updateTime_editable}}" input="datetime">
			<lz:block lz:if="{{orderDetails$updateTime}}">
				{{orderDetails$updateTime}}
			</lz:block>
			<lz:block lz:if="{{!orderDetails$updateTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="orderDetails.updateTime" id="updateTime"  value="{{orderDetails.updateTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择订单明细的修改时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{updateTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="updateTime">{{orderDetails.updateTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(orderDetails.updateTime$||orderDetails.updateTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$updateTime}}
	{{lz.set("addTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"addTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"addTime"))))}}
	{{lz.set("addTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$addTime}}
	<dl lz:if="{{addTime_editable||addTime_readonly}}" class="addTime  " major  ref="addTime">
		<dt>添加时间:</dt>
		<dd lz:if="{{addTime_editable}}" input="datetime">
			<lz:block lz:if="{{orderDetails$addTime}}">
				{{orderDetails$addTime}}
			</lz:block>
			<lz:block lz:if="{{!orderDetails$addTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="orderDetails.addTime" id="addTime"  value="{{orderDetails.addTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择订单明细的添加时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{addTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="addTime">{{orderDetails.addTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(orderDetails.addTime$||orderDetails.addTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$addTime}}
	{{lz.set("status_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"status"))))&&false)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"status"))))}}
	{{lz.set("status_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$status}}
	<dl lz:if="{{status_editable||status_readonly}}" class="status  " major  ref="status">
		<dt>状　　态:</dt>
		<dd lz:if="{{status_editable}}" input="select">
			<lz:block lz:if="{{orderDetails$status}}">
				{{orderDetails$status}}
			</lz:block>
			<lz:block lz:if="{{!orderDetails$status}}">
		 	<select class="narrow" id="status" name="orderDetails.status">
		 		<option value="">请选择</option>
				<option value="1" selected='{{orderDetails.status=="1"?"selected":""}}'>正常</option>
				<option value="0" selected='{{orderDetails.status=="0"?"selected":""}}'>无效</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择订单明细的状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{status_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="status">{{orderDetails.status}}</textarea>
		 		<span>
		 	
			 {{lz.html(orderDetails.status$||orderDetails.status)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$status}}
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{orderDetails.id}}" name="orderDetails.id" id="id" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'||edittype=='inport'}}">
				<button class="button" type="submit">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/goods/orderdetails.edit.html?edittype=update&id={{orderDetails.id}}"'>
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					修改&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>

 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>
	
	$(function(){
		if(parent.setit){
			parent.setit("/admin/goods/orderdetails.edit.html",document.title,"/admin//images/icons/display.png");
		}
	});
	
	function cancel(){
		if(parent.closeHref){
			parent.closeHref("/admin/goods/orderdetails.edit.html");
		}else{
			$.closeModalDialog();
		}
	}


</script>
</html>